package edu.unice.simul.util;

/**
 * Représente la direction d'un humain en radians
 * 
 * @author Romain Ciaccafava
 * 
 */
public class Direction {
	private double radians;

	public Direction() {
		this(Math.PI/2);
	}

	public Direction(double radians) {
		this.radians = radians;
	}

	public double getDirection() {
		return this.radians;
	}

	public void setDirection(double radians) {
		this.radians = radians;
	}

	public void droite() {
		this.radians = 0;
	}

	public void haut() {
		this.radians = Math.PI / 2;
	}

	public void gauche() {
		this.radians = Math.PI;
	}

	public void bas() {
		this.radians = 3 * Math.PI / 2;
	}

	public String toString() {
		return radians + "rad";
	}
}
